home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / amigaoscd / amigapluscd / AP-Website / forum / wbboard / whoposted.php < prev   
PHP Script  |  2001-07-01  |  997b  |  28 lines

  1. <?php
  2. require ("_functions.php");
  3. eval ("\$headinclude = \"".gettemplate("headinclude")."\";");
  4.     
  5. $posts = $db_zugriff->query("SELECT
  6. COUNT(postid) AS posts, bb".$n."_posts.userid, bb".$n."_user_table.username
  7. FROM bb".$n."_posts
  8. LEFT JOIN bb".$n."_user_table USING (userid)
  9. WHERE threadparentid='$threadid'
  10. GROUP BY bb".$n."_posts.userid
  11. ORDER BY posts DESC");
  12.  
  13. while ($post = $db_zugriff->fetch_array($posts))
  14.     {
  15.     if (($counter++ % 2) != 0)
  16.         $rowinfo = "bgcolor=\"{tableb}\" id = \"tableb\"";
  17.     else
  18.         $rowinfo = "bgcolor=\"{tablec}\" id = \"tablec\"";
  19.     $totalposts += $post[posts];
  20.     if($post[userid]) $authorname = "<a href=\"members.php?mode=profile&boardid=$boardid&styleid=$styleid&userid=$post[userid]$session\" target=\"_blank\"><b>$post[username]</b></a>";
  21.     else eval ("\$authorname = \"".gettemplate("lg_anonymous")."\";");
  22.     eval("\$posters .= \"".gettemplate("whopostedbit")."\";");
  23.     }
  24.     
  25. $totalposts = number_format($totalposts);
  26. eval("dooutput(\"".gettemplate("whoposted")."\");");
  27. ?>
  28.